/*
 * CarDetail.java
 *
 * This program demonstrates the use of CarDetail class to display the
 * car details of Auborn & Corp car dealer company.
 *
 * Copyright 2007 Aptech Software Limited. All rights reserved.
 */
package generic.demo;

import java.util.*;

/**
 * CarDetail is a class that will store the details of different cars of Auborn
 * & Corp car dealer company.
 *
 * @author vincent
 */
public class CarDetail {

    /**
     * Creates a new instance of CarDetail
     */
    public CarDetail() {
    }

    /**
     * Creates a new instance of CarDetail
     *
     * @param pName Stores the product name.
     * @param pID Stores the product id.
     * @param descr Stores the product description.
     * @param mft Stores the manufacturing company's name.
     * @param cost Stores the price of the product.
     */
    public CarDetail(String pName, String pID, String descr, String mft,
            Double cost) {
        productName = pName;
        productID = pID;
        description = descr;
        manufacturer = mft;
        price = cost;




    }

    /**
     * This method is invoked to return the details of the product.
     */
    public String toString() {
        return this.productID + "-" + this.productName;
    }

    /**
     * String variable to store the product name.
     */
    String productName;
    /**
     * String variable to store the product id.
     */
    String productID;
    /**
     * String variable to store the product description.
     */
    String description;
    /**
     * String variable to store the manufacturer name.
     */
    String manufacturer;
    /**
     * Double variable to store the price.
     */
    Double price;
}
